# Contributor: azmeuk <eloi@yaal.fr>
# Maintainer: azmeuk <eloi@yaal.fr>
pkgname=opensmtpd-filter-senderscore
_pkgname=filter-senderscore
pkgver=0.1.1
pkgrel=7
pkgdesc="OpenSMTPD senderscore filter"
url="https://github.com/poolpOrg/filter-senderscore"
license="ISC"
arch="all"
options="!check" # No test suite
depends="opensmtpd"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/poolpOrg/filter-senderscore/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	GO111MODULE=off go build
}

package() {
	install -Dm 0555 "$_pkgname-$pkgver" "$pkgdir"/usr/lib/opensmtpd/"$_pkgname"
}

sha512sums="dc4b8a97c9a10080f7d19e7b358193e1c6bde857db79be7fadb7851aa433b700966509378dd40e1591111817a09371a3a39955b8d553773acf98385e4fc39986  opensmtpd-filter-senderscore-0.1.1.tar.gz"
